package com.shiku.im.security.dao;

import com.shiku.im.repository.IMongoDAO;
import com.shiku.im.security.entity.ResourceInfo;
import com.shiku.im.security.entity.SecurityRole;
import java.util.List;
import org.bson.types.ObjectId;

import javax.sound.sampled.Line;

/**
 * @Description: TODO
 * @Author xie yuan yang
 * @Date 2020/3/6
 **/
public interface ResourceInfoDao  extends IMongoDAO<ResourceInfo, ObjectId> {

    //查询全部资源
    public List<ResourceInfo> queryResourceInfo();

    //删除资源
    public void delResourceInfo(ObjectId id);

    //修改资源
    public void updateResourceInfo(ResourceInfo resourceInfo);

    //添加资源
    public ResourceInfo sava(ResourceInfo resourceInfo);

    //根据pid查询资源记录
    public List<ResourceInfo> queryResourceInfoByPid(String pid);

    //根据id查询资源记录
    public ResourceInfo queryResourceInfoById(ObjectId id);

    //根据名称查询资源
    public List<ResourceInfo> queryResourceInfoByResourceName(String resourceName);

    public List<ResourceInfo> queryResourceInfoByResourceUrl(String resourceUrl);

    public List<ResourceInfo> queryResourceInfoByResourceAuth(String resourceAuth);
}